package com.ruoyi.api.service.impl;

import com.ruoyi.api.service.SelectCustomers;
import com.ruoyi.company.domain.CompanyOther;
import com.ruoyi.company.domain.CompanyScope;
import com.ruoyi.company.mapper.CompanyOtherMapper;
import com.ruoyi.company.mapper.CompanyScopeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SelectCustomersImpl implements SelectCustomers {
    @Autowired
    private CompanyOtherMapper companyOtherMapper;
    @Autowired
    private CompanyScopeMapper companyScopeMapper;

    /**
     * 查询登录用户的客户信息
     *
     * @param map 查询条件
     * @return 结果
     */
    @Override
    public List<CompanyOther> selectList(Map<String, Object> map) {
        return companyOtherMapper.selectList(map);
    }

    /**
     * 查询客户的资质
     *
     * @param map 查询条件
     * @return 结果
     */
    @Override
    public List<CompanyScope> selectScopeList(Map<String, Object> map) {
        return companyScopeMapper.selectList(map);
    }
}
